package com.usian.model.base;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;

public interface BaseResult {
     ResponseResult paramError = ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
     ResponseResult success = ResponseResult.okResult(AppHttpCodeEnum.SUCCESS);
     ResponseResult needLogin = ResponseResult.errorResult(AppHttpCodeEnum.NEED_LOGIN);

     default ResponseResult success(Object o){
          return ResponseResult.okResult(o);
     }
}
